//
//  XYImageFrom.m
//  十年少
//
//  Created by 尧的mac on 15/11/28.
//  Copyright © 2015年 xxy.icom. All rights reserved.
//

#import "XYImageFrom.h"
#import <UIKit/UIKit.h>
@implementation XYImageFrom


-(void)setMainModel:(XYMainModel *)mainModel{
    
    _mainModel = mainModel;
    CGFloat contentFloatwidth = [UIScreen mainScreen].bounds.size.width;
      //标题
    CGFloat height = 40;
    self.titleFrom = CGRectMake(0, 0, contentFloatwidth, height);
    
    //分隔线
    self.viewFrom = CGRectMake(0, CGRectGetMaxY(_titleFrom)+2, contentFloatwidth, 1);
   
    //图片
    self.imageFrom =CGRectMake(0, CGRectGetMaxY(_titleFrom)+8, contentFloatwidth, 300);
 
    
    
    self.cellHeight = CGRectGetMaxY(_imageFrom)+5;
}
@end
